package com.yequan.thread.singleton.innerclass;

public class MyObject {

    private MyObject() {
    }

    private static class MyObjectFactory {
        private static MyObject myObject = new MyObject();
    }

    public static MyObject getInstance() {
        return MyObjectFactory.myObject;
    }

}
